<template>
  <view class="order-total">
    <view class="goods-num-info">
      <text>共 {{ num }} 份商品</text>
    </view>
    <view class="price-info">
      <text class="price-info__label">合计</text>
      <text class="price-info__value">￥{{ total }}</text>
    </view>
  </view>
</template>

<script>
export default {
  props: {
    num: {
      type: [String, Number],
      default() {
        return "";
      }
    },
    total: {
      type: [String, Number],
      default() {
        return "";
      }
    }
  }
};
</script>

<style lang="scss" scoped>
.order-total {
  color: $uni-color-subtitle;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .price-info__label {
    font-size: $uni-font-size-base;
    margin-right: 5rpx;
  }
  .price-info__value {
    font-size: 36rpx;
    font-weight: 600;
    color: #333;
  }
}
</style>